<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common :: header"/>
<body style="background-color: #fff">
<style>
    .dm-form{padding-top: 30px; padding-left: 60px;}
    .dm-form tr{height: 50px;}
    .dm-form input{width: 260px}
    .dm-label{width: 80px;padding-right: 15px;text-align: right}
</style>
<form id="form" class="dm-form" method="post" action='/system/dict/edit'>
    <input type="hidden" name="dictId" th:value="${dict.dictId}">
    <table>
        <tr>
            <td class="dm-label">字典名称：</td>
            <td class="dm-content">
                <input class="easyui-textbox" name="dictName" data-options="required:true" th:value="${dict.dictName}">
            </td>
        </tr>
        <tr>
            <td class="dm-label">字典类型：</td>
            <td class="dm-content">
                <input class="easyui-textbox" name="dictType" data-options="required:true" th:value="${dict.dictType}">
            </td>
        </tr>
        <tr>
            <td class="dm-label">字典状态：</td>
            <td class="dm-content">
                <input class="status" name="status" data-options="label:'正常'" value="0" checked>
                <input class="status" name="status" data-options="label:'停用'" value="1">
            </td>
        </tr>
    </table>
</form>
<script>
    $(function () {
        $('.status').radiobox({})
        $('.status').radiobox('checked', [[${dict.status}]]);
    })
    function submitHandler(index) {
        dm.save('form', function() {
            parent.layer.close(index);
            parent.dm.search('table');
        })
    }
</script>
</body>
</html>
